package demo.db.redis.vo;

import com.alibaba.fastjson.JSON;

/**
 * Redis 慢命令统计
 *
 * @author junying.han
 */
public class RedisSlowLogStatistic {

    private String ip;

    private Integer port;
    /**
     * 慢命令数量
     */
    private Integer cnt;
    /**
     * 慢命令耗时
     */
    private Double executionTime;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getCnt() {
        return cnt;
    }

    public void setCnt(Integer cnt) {
        this.cnt = cnt;
    }

    public Double getExecutionTime() {
        return executionTime;
    }

    public void setExecutionTime(Double executionTime) {
        this.executionTime = executionTime;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
